package generics_collections_pkg;

class MyTest
{
	String examName;
	double examFee;
	
	public MyTest(String en, double ef)
	{
		this.examName = en;
		this.examFee = ef;
	}
	public String toString()
	{
		return "examName: " + examName + " examFee: " + examFee;
	}
}
public class Override_toString 
{
	public static void main(String[] args) 
	{
		MyTest t = new MyTest("SCJP",5000);
		MyTest t2 = t;
		System.out.println(t);
		System.out.println(t.examName +" : "+ t.examFee);
		
		System.out.println(t==t2);
		System.out.println(t.equals(t2));


	}
}
